package com.fengxu.springcloud.controller;

import com.fengxu.springcloud.doman.CommonResult;
import com.fengxu.springcloud.doman.Order;
import com.fengxu.springcloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    private OrderService OrderService;

    @GetMapping("/order/create")
    public CommonResult create(Order order){
        OrderService.create(order);
        return new CommonResult(200, "订单创建成功！");
    }

}
